package com.u1zz.zeus.module.iot.controller.admin.product.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

import static com.u1zz.zeus.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 产品列表 Request VO")
@Data
public class ProductListReqVO {
    private Long id;

    @Schema(description = "所属品类", example = "20492")
    private Long categoryId;

    @Schema(description = "产品标识")
    private String productKey;

    @Schema(description = "产品名称", example = "赵六")
    private String productName;

    @Schema(description = "消息协议")
    private String messageProtocol;

    @Schema(description = "传输协议")
    private String transportProtocol;

    @Schema(description = "设备类型", example = "1")
    private String deviceType;

    @Schema(description = "认证方式", example = "1")
    private String authType;

    @Schema(description = "产品描述", example = "你猜")
    private String description;

    @Schema(description = "物模型")
    private String metadata;

    @Schema(description = "发布状态", example = "1")
    private String status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}